const config = {
	origin: {
		x: 0.5,
		y: 0.5
	},
	radius: 200,
	title: {
		text: '某站点用户访问来源',
		subtext: '纯属虚构',
		left: 'center'
	},
	tooltip: {
		trigger: 'item'
	},
	legend: {
		orient: 'vertical',
		left: 'left',
	},
	series: [{
		name: '访问来源',
		type: 'pie',
		radius: '50%',
		data: [{
				value: 1048,
				name: '搜索引擎',
				color: "#F38BA0"
			},
			{
				value: 735,
				name: '直接访问',
				color: '#FFBCBC'
			},
			{
				value: 580,
				name: '邮件营销',
				color: '#EDF6E5'
			},
			{
				value: 484,
				name: '联盟广告',
				color: '#B5EAEA'
			},
			{
				value: 300,
				name: '视频广告',
				color: '#00EAD3'
			}
		],
		emphasis: {
			itemStyle: {
				shadowBlur: 10,
				shadowOffsetX: 0,
				shadowColor: 'rgba(0, 0, 0, 0.5)'
			}
		}
	}]
};

const pieChartInstance = new PieChart(config);
console.log(pieChartInstance);